Repository navigation
docs(gestures): make swipe/gesture/longpress discoverable and honest in MCP metadata - #4748
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
…in MCP metadata An MCP client that defers tool schemas finds tools by keyword search over name, description, and searchHint. Three gesture entries misled that search: - swipe carried searchHint "drag gesture", but a swipe is a quick coordinate fling with no hold, so drag-to-reorder via swipe fails. The hint is now "flick slide carousel page" and the description states the contact starts moving immediately with no pause. - gesture carried "multi-touch zoom", hiding that gesture drag exists and holds its source down first (DEFAULT_DRAG_SOURCE_HOLD_MS = 800). The hint gains "reorder move row" and the MCP description now says a drag holds the source for 800 ms by default before carrying it over. - longpress hint was just "long press"; it now also carries home screen icon widget app task words. - help gestures had no line for drag-to-reorder; it now shows "gesture drag @E12 @e40" plus the hold-first semantics. Text and metadata only; no behavior change, no change to the always-loaded 'loop' tier (always-loaded tools/list stays at 22400 of 22528 bytes). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
fd5063b to
658284d
Compare
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready at d61e2f0. The help and metadata changes are accurate, and all 17 checks pass, including the cli-help and loading-meta tests that cover these strings. There are no conflicts. Not blocking: line 26 of |
Summary
Text and metadata only — no behavior change. An MCP client that defers tool schemas finds tools by keyword search over the tool name, description, and
_metasearchHint, and three gesture entries misled that search:swipehadsearchHint: "drag gesture", but a swipe is a quick coordinate fling with no hold, so drag-to-reorder via swipe fails. Hint is nowflick slide carousel page; the MCP description now states the contact starts moving immediately with no pause, and--helppoints togesture drag @src @dstfor a held move.gesturehadsearchHint: "multi-touch zoom", hiding thatgesture dragexists and holds its source down first (DEFAULT_DRAG_SOURCE_HOLD_MS= 800 ms). Hint gainsreorder(a hint may only add words the name and description lack); the MCP description now says a drag holds the source for 800 ms by default before carrying it over.longpresshint stayslong press: its description already covers hold and context menu.help gestureshad no drag-to-reorder line; it now showsagent-device gesture drag @e12 @e40plus the hold-first semantics.Touched files: 3 (
packages/command-surface/src/interaction/index.ts,packages/command-surface/src/interaction/metadata.ts,src/commands/schema/cli-help-gestures.ts). The always-loaded'loop'tier is untouched:tools/listalways-loaded payload is 22400 of 22528 budget bytes, and the loading-meta tests (searchHint rules, byte budget) pass.Validation
Tested SHA:
658284d0b7f493d405aead3c0d4d5e1cb45686e3(branch buildnode bin/agent-device.mjs).vitest run --project unit-coreonsrc/mcp/__tests__/command-tools-loading-meta.test.ts,src/__tests__/cli-help.test.ts,src/commands/schema/cli-help-topics.test.ts,cli-help-command-usage.test.ts,command-descriptor-parity.test.ts,packages/command-surface/src/interaction,src/mcp— all pass (113 + 260 tests), plus--project output-economy(33).pnpm formatrun.tools/listprobe shows the new hints/descriptions; always-loaded byte budget green (22400 <= 22528).device_open-returnedagent-devicecommand pinned to the same devices/sessions; the changed text itself was verified from the branch build):swipe 370 273 60 273longpress @e9 1000gesture drag @e13 @e7swipe 340 437 60 437longpress @e9 1200swipe 1000 1189 200 1189gesture drag 'text="Espanol (Estados Unidos)"' 'text="English (United States)"'+ confirm dialogswipe 980 880 120 880swipe 302 822 778 822, thengesture drag @e14 @e16longpress @e20 900/automation"Long press canary" (RN Pressable onLongPress)swipe 112 361 289 361, thengesture drag @e11 @e12longpress @e14 900/automationFindings (not papered over): in Google Clock on Android 15 a horizontal swipe on an alarm card expands the card (revealing Delete inside) rather than a swipe action, so the Android swipe-reveals-row-action case used the notification shade; the test-app GestureLab pan/fling over "Gesture test image" did not register on either platform (the target sits inside the home ScrollView) — unrelated to the changed text. CI obligations: full
pnpm checkruns on this PR; focused tests above cover the touched files.🤖 Generated with Claude Code